import os
from solid import scad_render_to_file
from solid import *
def render(mod):
    file=os.path.abspath("./temp.scad")
    scad_render_to_file(mod, file)
    cmd=f"openscad {file}"
    os.system(cmd)
def ex_material():
    scadfile = s.import_scad('./material/electronics/usb.scad')
    b = scadfile.usb()
    # scad_render_to_file(b, 'out_file.scad')
    render(b)
    return b
a=sphere(15, segments = 180)
render(a)

